var _SuccessfullyDeleted = document.querySelector('.SuccessfullyDeleted')

function compiler(item) {
  if (item == 1) {
    _SuccessfullyDeleted.style.display = 'none'
    history.go(-1)
  } else if (item == 2) {
    _SuccessfullyDeleted.style.display = 'block'
    setTimeout(function () {
      location.href = "../AssetDetails/AssetDetails.html";
    }, 1500)
  }
}
//资产来源
var $origin = document.querySelector("#origin");

function fountainhead(item) {
  if (item == 1) {
    $origin.style.display = "block";
  } else if (item == 2) {
    $origin.style.display = 'none'
  } else if (item == 3) {
    $origin.style.display = 'none'
  } else if (item == 4) {
    $origin.style.display = 'none'
  } else if (item == 5) {
    $origin.style.display = 'none'
  } else {
    $origin.style.display = 'none'
  }
}
//购入日期
var _date = document.querySelector('.time')

function date(item) {
  if (item == 1) {
    _date.style.display = 'block'
  } else if (item == 2) {
    _date.style.display = 'none'
  }
}
//拍照
var _papers = document.querySelector('.papers')

function file(item) {
  if (item == 1) {
    _papers.style.display = 'block'
  } else if (item == 2) {
    _papers.style.display = 'none'
  } else if (item == 3) {
    _papers.style.display = 'none'
  } else {
    _papers.style.display = 'none'
  }
}